import Vue from 'vue'
import App from './App.vue'

//引入并注册路由器
import router from '@/router/index'
// 引入并注册仓库
import store from './store'

// 引入加载amfe-flexible
import 'amfe-flexible'

//引入并安装vant  这里目前是完整引入
import Vant from 'vant'
import 'vant/lib/index.css'
Vue.use(Vant)

//引入全部的请求函数[用对象包含全部的请求函数]
import ajax from '@/api'


//关闭开发提示
Vue.config.productionTip = false

new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$ajax = ajax
    Vue.prototype.$bus = this
  }
}).$mount('#app')
